home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / f1ocx / vcform1.3 / VB4 / TIMING1 / FOTIME3.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-15  |  19.9 KB  |  614 lines

  1. VERSION 4.00
  2. Begin VB.Form Form3 
  3.    Caption         =   "Formula One Timing Project"
  4.    ClientHeight    =   4200
  5.    ClientLeft      =   1050
  6.    ClientTop       =   1860
  7.    ClientWidth     =   7395
  8.    Height          =   4605
  9.    Left            =   990
  10.    LinkTopic       =   "Form3"
  11.    ScaleHeight     =   4200
  12.    ScaleWidth      =   7395
  13.    Top             =   1515
  14.    Width           =   7515
  15.    Begin VB.Frame Frame3 
  16.       Caption         =   "Other Operations"
  17.       BeginProperty Font 
  18.          name            =   "Arial"
  19.          charset         =   0
  20.          weight          =   700
  21.          size            =   12
  22.          underline       =   0   'False
  23.          italic          =   0   'False
  24.          strikethrough   =   0   'False
  25.       EndProperty
  26.       ForeColor       =   &H00FF0000&
  27.       Height          =   2895
  28.       Left            =   3720
  29.       TabIndex        =   17
  30.       Top             =   240
  31.       Width           =   3375
  32.       Begin VB.TextBox SortRow 
  33.          BeginProperty Font 
  34.             name            =   "Arial"
  35.             charset         =   0
  36.             weight          =   700
  37.             size            =   9.75
  38.             underline       =   0   'False
  39.             italic          =   0   'False
  40.             strikethrough   =   0   'False
  41.          EndProperty
  42.          ForeColor       =   &H000000FF&
  43.          Height          =   375
  44.          Left            =   2040
  45.          TabIndex        =   13
  46.          Text            =   "Text1"
  47.          Top             =   2280
  48.          Width           =   1000
  49.       End
  50.       Begin VB.TextBox DeleteRow 
  51.          BeginProperty Font 
  52.             name            =   "Arial"
  53.             charset         =   0
  54.             weight          =   700
  55.             size            =   9.75
  56.             underline       =   0   'False
  57.             italic          =   0   'False
  58.             strikethrough   =   0   'False
  59.          EndProperty
  60.          ForeColor       =   &H000000FF&
  61.          Height          =   375
  62.          Left            =   2040
  63.          TabIndex        =   12
  64.          Text            =   "Text1"
  65.          Top             =   1800
  66.          Width           =   1000
  67.       End
  68.       Begin VB.TextBox InsertRow 
  69.          BeginProperty Font 
  70.             name            =   "Arial"
  71.             charset         =   0
  72.             weight          =   700
  73.             size            =   9.75
  74.             underline       =   0   'False
  75.             italic          =   0   'False
  76.             strikethrough   =   0   'False
  77.          EndProperty
  78.          ForeColor       =   &H000000FF&
  79.          Height          =   375
  80.          Left            =   2040
  81.          TabIndex        =   11
  82.          Text            =   "Text1"
  83.          Top             =   1320
  84.          Width           =   1000
  85.       End
  86.       Begin VB.TextBox CopyRow 
  87.          BeginProperty Font 
  88.             name            =   "Arial"
  89.             charset         =   0
  90.             weight          =   700
  91.             size            =   9.75
  92.             underline       =   0   'False
  93.             italic          =   0   'False
  94.             strikethrough   =   0   'False
  95.          EndProperty
  96.          ForeColor       =   &H000000FF&
  97.          Height          =   375
  98.          Left            =   2040
  99.          TabIndex        =   10
  100.          Text            =   "Text1"
  101.          Top             =   840
  102.          Width           =   1000
  103.       End
  104.       Begin VB.TextBox ScrollRow 
  105.          BeginProperty Font 
  106.             name            =   "Arial"
  107.             charset         =   0
  108.             weight          =   700
  109.             size            =   9.75
  110.             underline       =   0   'False
  111.             italic          =   0   'False
  112.             strikethrough   =   0   'False
  113.          EndProperty
  114.          ForeColor       =   &H000000FF&
  115.          Height          =   375
  116.          Left            =   2040
  117.          TabIndex        =   9
  118.          Text            =   "Text1"
  119.          Top             =   360
  120.          Width           =   1000
  121.       End
  122.       Begin VB.Label Label9 
  123.          Caption         =   "Rows To Sort"
  124.          BeginProperty Font 
  125.             name            =   "Arial"
  126.             charset         =   0
  127.             weight          =   400
  128.             size            =   12
  129.             underline       =   0   'False
  130.             italic          =   0   'False
  131.             strikethrough   =   0   'False
  132.          EndProperty
  133.          ForeColor       =   &H00FF0000&
  134.          Height          =   255
  135.          Left            =   120
  136.          TabIndex        =   22
  137.          Top             =   2280
  138.          Width           =   1815
  139.       End
  140.       Begin VB.Label Label8 
  141.          Caption         =   "Rows To Delete"
  142.          BeginProperty Font 
  143.             name            =   "Arial"
  144.             charset         =   0
  145.             weight          =   400
  146.             size            =   12
  147.             underline       =   0   'False
  148.             italic          =   0   'False
  149.             strikethrough   =   0   'False
  150.          EndProperty
  151.          ForeColor       =   &H00FF0000&
  152.          Height          =   255
  153.          Left            =   120
  154.          TabIndex        =   21
  155.          Top             =   1800
  156.          Width           =   1815
  157.       End
  158.       Begin VB.Label Label7 
  159.          Caption         =   "Rows To Insert"
  160.          BeginProperty Font 
  161.             name            =   "Arial"
  162.             charset         =   0
  163.             weight          =   400
  164.             size            =   12
  165.             underline       =   0   'False
  166.             italic          =   0   'False
  167.             strikethrough   =   0   'False
  168.          EndProperty
  169.          ForeColor       =   &H00FF0000&
  170.          Height          =   255
  171.          Left            =   120
  172.          TabIndex        =   20
  173.          Top             =   1320
  174.          Width           =   1815
  175.       End
  176.       Begin VB.Label Label6 
  177.          Caption         =   "Rows To Copy"
  178.          BeginProperty Font 
  179.             name            =   "Arial"
  180.             charset         =   0
  181.             weight          =   400
  182.             size            =   12
  183.             underline       =   0   'False
  184.             italic          =   0   'False
  185.             strikethrough   =   0   'False
  186.          EndProperty
  187.          ForeColor       =   &H00FF0000&
  188.          Height          =   255
  189.          Left            =   120
  190.          TabIndex        =   19
  191.          Top             =   840
  192.          Width           =   1815
  193.       End
  194.       Begin VB.Label Label5 
  195.          Caption         =   "Rows To Scroll"
  196.          BeginProperty Font 
  197.             name            =   "Arial"
  198.             charset         =   0
  199.             weight          =   400
  200.             size            =   12
  201.             underline       =   0   'False
  202.             italic          =   0   'False
  203.             strikethrough   =   0   'False
  204.          EndProperty
  205.          ForeColor       =   &H00FF0000&
  206.          Height          =   375
  207.          Left            =   120
  208.          TabIndex        =   18
  209.          Top             =   360
  210.          Width           =   1695
  211.       End
  212.    End
  213.    Begin VB.Frame Frame2 
  214.       Caption         =   "Formulas For Calculations"
  215.       BeginProperty Font 
  216.          name            =   "Arial"
  217.          charset         =   0
  218.          weight          =   700
  219.          size            =   12
  220.          underline       =   0   'False
  221.          italic          =   0   'False
  222.          strikethrough   =   0   'False
  223.       EndProperty
  224.       ForeColor       =   &H00FF0000&
  225.       Height          =   1335
  226.       Left            =   120
  227.       TabIndex        =   14
  228.       Top             =   1800
  229.       Width           =   3375
  230.       Begin VB.TextBox CalcRow 
  231.          BeginProperty Font 
  232.             name            =   "Arial"
  233.             charset         =   0
  234.             weight          =   700
  235.             size            =   9.75
  236.             underline       =   0   'False
  237.             italic          =   0   'False
  238.             strikethrough   =   0   'False
  239.          EndProperty
  240.          ForeColor       =   &H000000FF&
  241.          Height          =   375
  242.          Left            =   1680
  243.          TabIndex        =   7
  244.          Text            =   "Text1"
  245.          Top             =   360
  246.          Width           =   1000
  247.       End
  248.       Begin VB.TextBox CalcCol 
  249.          BeginProperty Font 
  250.             name            =   "Arial"
  251.             charset         =   0
  252.             weight          =   700
  253.             size            =   9.75
  254.             underline       =   0   'False
  255.             italic          =   0   'False
  256.             strikethrough   =   0   'False
  257.          EndProperty
  258.          ForeColor       =   &H000000FF&
  259.          Height          =   375
  260.          Left            =   2040
  261.          TabIndex        =   8
  262.          Text            =   "Text1"
  263.          Top             =   840
  264.          Width           =   1000
  265.       End
  266.       Begin VB.Label Label4 
  267.          Caption         =   "Rows To Fill"
  268.          BeginProperty Font 
  269.             name            =   "Arial"
  270.             charset         =   0
  271.             weight          =   400
  272.             size            =   12
  273.             underline       =   0   'False
  274.             italic          =   0   'False
  275.             strikethrough   =   0   'False
  276.          EndProperty
  277.          ForeColor       =   &H00FF0000&
  278.          Height          =   255
  279.          Left            =   120
  280.          TabIndex        =   16
  281.          Top             =   360
  282.          Width           =   1455
  283.       End
  284.       Begin VB.Label Label3 
  285.          Caption         =   "Columns To Fill"
  286.          BeginProperty Font 
  287.             name            =   "Arial"
  288.             charset         =   0
  289.             weight          =   400
  290.             size            =   12
  291.             underline       =   0   'False
  292.             italic          =   0   'False
  293.             strikethrough   =   0   'False
  294.          EndProperty
  295.          ForeColor       =   &H00FF0000&
  296.          Height          =   255
  297.          Left            =   120
  298.          TabIndex        =   15
  299.          Top             =   840
  300.          Width           =   1815
  301.       End
  302.    End
  303.    Begin VB.CommandButton Command2 
  304.       Caption         =   "Done"
  305.       BeginProperty Font 
  306.          name            =   "MS Sans Serif"
  307.          charset         =   0
  308.          weight          =   400
  309.          size            =   9.75
  310.          underline       =   0   'False
  311.          italic          =   0   'False
  312.          strikethrough   =   0   'False
  313.       EndProperty
  314.       Height          =   495
  315.       Left            =   5520
  316.       TabIndex        =   0
  317.       Top             =   3480
  318.       Width           =   1575
  319.    End
  320.    Begin VB.Frame Frame1 
  321.       Caption         =   "Number and Formula Fills"
  322.       BeginProperty Font 
  323.          name            =   "Arial"
  324.          charset         =   0
  325.          weight          =   700
  326.          size            =   12
  327.          underline       =   0   'False
  328.          italic          =   0   'False
  329.          strikethrough   =   0   'False
  330.       EndProperty
  331.       ForeColor       =   &H00FF0000&
  332.       Height          =   1335
  333.       Left            =   120
  334.       TabIndex        =   2
  335.       Top             =   240
  336.       Width           =   3375
  337.       Begin VB.TextBox FillCol 
  338.          BeginProperty Font 
  339.             name            =   "Arial"
  340.             charset         =   0
  341.             weight          =   700
  342.             size            =   9.75
  343.             underline       =   0   'False
  344.             italic          =   0   'False
  345.             strikethrough   =   0   'False
  346.          EndProperty
  347.          ForeColor       =   &H000000FF&
  348.          Height          =   375
  349.          Left            =   2040
  350.          TabIndex        =   6
  351.          Text            =   "Text1"
  352.          Top             =   840
  353.          Width           =   1000
  354.       End
  355.       Begin VB.TextBox FillRow 
  356.          BeginProperty Font 
  357.             name            =   "Arial"
  358.             charset         =   0
  359.             weight          =   700
  360.             size            =   9.75
  361.             underline       =   0   'False
  362.             italic          =   0   'False
  363.             strikethrough   =   0   'False
  364.          EndProperty
  365.          ForeColor       =   &H000000FF&
  366.          Height          =   375
  367.          Left            =   1680
  368.          TabIndex        =   5
  369.          Text            =   "Text1"
  370.          Top             =   360
  371.          Width           =   1000
  372.       End
  373.       Begin VB.Label Label2 
  374.          Caption         =   "Columns To Fill"
  375.          BeginProperty Font 
  376.             name            =   "Arial"
  377.             charset         =   0
  378.             weight          =   400
  379.             size            =   12
  380.             underline       =   0   'False
  381.             italic          =   0   'False
  382.             strikethrough   =   0   'False
  383.          EndProperty
  384.          ForeColor       =   &H00FF0000&
  385.          Height          =   255
  386.          Left            =   120
  387.          TabIndex        =   4
  388.          Top             =   840
  389.          Width           =   1815
  390.       End
  391.       Begin VB.Label Label1 
  392.          Caption         =   "Rows To Fill"
  393.          BeginProperty Font 
  394.             name            =   "Arial"
  395.             charset         =   0
  396.             weight          =   400
  397.             size            =   12
  398.             underline       =   0   'False
  399.             italic          =   0   'False
  400.             strikethrough   =   0   'False
  401.          EndProperty
  402.          ForeColor       =   &H00FF0000&
  403.          Height          =   255
  404.          Left            =   120
  405.          TabIndex        =   3
  406.          Top             =   360
  407.          Width           =   1455
  408.       End
  409.    End
  410.    Begin VB.CommandButton Command1 
  411.       Caption         =   "Set To Defaults"
  412.       BeginProperty Font 
  413.          name            =   "MS Sans Serif"
  414.          charset         =   0
  415.          weight          =   400
  416.          size            =   9.75
  417.          underline       =   0   'False
  418.          italic          =   0   'False
  419.          strikethrough   =   0   'False
  420.       EndProperty
  421.       Height          =   495
  422.       Left            =   3720
  423.       TabIndex        =   1
  424.       Top             =   3480
  425.       Width           =   1575
  426.    End
  427. Attribute VB_Name = "Form3"
  428. Attribute VB_Creatable = False
  429. Attribute VB_Exposed = False
  430. Private Sub CalcCol_KeyPress(KeyAscii As Integer)
  431.     If KeyAscii = 13 Then
  432.         KeyAscii = 0
  433.         ScrollRow.SetFocus
  434.     End If
  435. End Sub
  436. Private Sub CalcCol_LostFocus()
  437.     If Val(CalcCol.TEXT) < 1 Or Val(CalcCol.TEXT) > 256 Then
  438.         Beep
  439.         MsgBox "Must be between 1 and 256", 48
  440.         CalcCol.TEXT = Str$(Set_CalcCols%)
  441.         CalcCol.SetFocus
  442.     Else
  443.         Set_CalcCols% = Val(CalcCol.TEXT)
  444.     End If
  445. End Sub
  446. Private Sub CalcRow_KeyPress(KeyAscii As Integer)
  447.     If KeyAscii = 13 Then
  448.         KeyAscii = 0
  449.         CalcCol.SetFocus
  450.     End If
  451. End Sub
  452. Private Sub CalcRow_LostFocus()
  453.     If Val(CalcRow.TEXT) < 1 Or Val(CalcRow.TEXT) > 16384 Then
  454.         Beep
  455.         MsgBox "Must be between 1 and 16,384", 48
  456.         CalcRow.TEXT = Str$(Set_CalcRows%)
  457.         CalcRow.SetFocus
  458.     Else
  459.         Set_CalcRows% = Val(CalcRow.TEXT)
  460.     End If
  461. End Sub
  462. Private Sub Command1_Click()
  463.     Set_CopyRows% = DefCopyRows
  464.     Set_InsertRows% = DefInsertRows
  465.     Set_DeleteRows% = DefDeleteRows
  466.     Set_FillRows% = DefFillRows
  467.     Set_FillCols% = DefFillCols
  468.     Set_ScrollRows% = DefScrollRows
  469.     Set_SortRows% = DefSortRows
  470.     Set_CalcRows% = DefCalcRows
  471.     Set_CalcCols% = DefCalcCols
  472.     FillRow.TEXT = Str$(Set_FillRows%)
  473.     FillCol.TEXT = Str$(Set_FillCols%)
  474.     CalcRow.TEXT = Str$(Set_CalcRows%)
  475.     CalcCol.TEXT = Str$(Set_CalcCols%)
  476.     ScrollRow.TEXT = Str$(Set_ScrollRows%)
  477.     CopyRow.TEXT = Str$(Set_CopyRows%)
  478.     InsertRow.TEXT = Str$(Set_InsertRows%)
  479.     DeleteRow.TEXT = Str$(Set_DeleteRows%)
  480.     SortRow.TEXT = Str$(Set_SortRows%)
  481. End Sub
  482. Private Sub Command2_Click()
  483.     Form3.Hide
  484.     Form1.Show
  485. End Sub
  486. Private Sub Command3_KeyPress(KeyAscii As Integer)
  487. End Sub
  488. Private Sub CopyRow_KeyPress(KeyAscii As Integer)
  489.     If KeyAscii = 13 Then
  490.         KeyAscii = 0
  491.         InsertRow.SetFocus
  492.     End If
  493. End Sub
  494. Private Sub CopyRow_LostFocus()
  495.     If Val(CopyRow.TEXT) < 1 Or Val(CopyRow.TEXT) > 16384 Then
  496.         Beep
  497.         MsgBox "Must be between 1 and 16,384", 48
  498.         CopyRow.TEXT = Str$(Set_CopyRows%)
  499.         CopyRow.SetFocus
  500.     Else
  501.         Set_CopyRows% = Val(CopyRow.TEXT)
  502.     End If
  503. End Sub
  504. Private Sub DeleteRow_KeyPress(KeyAscii As Integer)
  505.     If KeyAscii = 13 Then
  506.         KeyAscii = 0
  507.         SortRow.SetFocus
  508.     End If
  509. End Sub
  510. Private Sub DeleteRow_LostFocus()
  511.     If Val(DeleteRow.TEXT) < 1 Or Val(DeleteRow.TEXT) > 16384 Then
  512.         Beep
  513.         MsgBox "Must be between 1 and 16,384", 48
  514.         DeleteRow.TEXT = Str$(Set_DeleteRows%)
  515.         DeleteRow.SetFocus
  516.     Else
  517.         Set_DeleteRows% = Val(DeleteRow.TEXT)
  518.     End If
  519. End Sub
  520. Private Sub FillCol_KeyPress(KeyAscii As Integer)
  521.     If KeyAscii = 13 Then
  522.         KeyAscii = 0
  523.         CalcRow.SetFocus
  524.     End If
  525. End Sub
  526. Private Sub FillCol_LostFocus()
  527.     If Val(FillCol.TEXT) < 1 Or Val(FillCol.TEXT) > 256 Then
  528.         Beep
  529.         MsgBox "Must be between 1 and 256", 48
  530.         FillCol.TEXT = Str$(Set_FillCols%)
  531.         FillCol.SetFocus
  532.    Else
  533.         Set_FillCols% = Val(FillCol.TEXT)
  534.     End If
  535. End Sub
  536. Private Sub FillRow_KeyPress(KeyAscii As Integer)
  537.     If KeyAscii = 13 Then
  538.         KeyAscii = 0
  539.         FillCol.SetFocus
  540.     End If
  541. End Sub
  542. Private Sub FillRow_LostFocus()
  543.     If Val(FillRow.TEXT) < 1 Or Val(FillRow.TEXT) > 16384 Then
  544.         Beep
  545.         MsgBox "Must be between 1 and 16,384", 48
  546.         FillRow.TEXT = Str$(Set_FillRows%)
  547.         FillRow.SetFocus
  548.     Else
  549.         Set_FillRows% = Val(FillRow.TEXT)
  550.     End If
  551. End Sub
  552. Private Sub Form_Activate()
  553.    Form3.FillRow.SetFocus
  554. End Sub
  555. Private Sub Form_Load()
  556.     FillRow.TEXT = Str$(Set_FillRows%)
  557.     FillCol.TEXT = Str$(Set_FillCols%)
  558.     CalcRow.TEXT = Str$(Set_CalcRows%)
  559.     CalcCol.TEXT = Str$(Set_CalcCols%)
  560.     ScrollRow.TEXT = Str$(Set_ScrollRows%)
  561.     CopyRow.TEXT = Str$(Set_CopyRows%)
  562.     InsertRow.TEXT = Str$(Set_InsertRows%)
  563.     DeleteRow.TEXT = Str$(Set_DeleteRows%)
  564.     SortRow.TEXT = Str$(Set_SortRows%)
  565.  End Sub
  566. Private Sub InsertRow_KeyPress(KeyAscii As Integer)
  567.     If KeyAscii = 13 Then
  568.         KeyAscii = 0
  569.         DeleteRow.SetFocus
  570.     End If
  571. End Sub
  572. Private Sub InsertRow_LostFocus()
  573.     If Val(InsertRow.TEXT) < 1 Or Val(InsertRow.TEXT) > 16384 Then
  574.         Beep
  575.         MsgBox "Must be between 1 and 16,384", 48
  576.         InsertRow.TEXT = Str$(Set_InsertRows%)
  577.         InsertRow.SetFocus
  578.     Else
  579.         Set_InsertRows% = Val(InsertRow.TEXT)
  580.     End If
  581. End Sub
  582. Private Sub ScrollRow_KeyPress(KeyAscii As Integer)
  583.     If KeyAscii = 13 Then
  584.         KeyAscii = 0
  585.         CopyRow.SetFocus
  586.     End If
  587. End Sub
  588. Private Sub ScrollRow_LostFocus()
  589.     If Val(ScrollRow.TEXT) < 1 Or Val(ScrollRow.TEXT) > 16384 Then
  590.         Beep
  591.         MsgBox "Must be between 1 and 16,384", 48
  592.         ScrollRow.TEXT = Str$(Set_ScrollRows%)
  593.         ScrollRow.SetFocus
  594.    Else
  595.         Set_ScrollRows% = Val(ScrollRow.TEXT)
  596.     End If
  597. End Sub
  598. Private Sub SortRow_KeyPress(KeyAscii As Integer)
  599.     If KeyAscii = 13 Then
  600.         KeyAscii = 0
  601.         FillRow.SetFocus
  602.     End If
  603. End Sub
  604. Private Sub SortRow_LostFocus()
  605.     If Val(SortRow.TEXT) < 1 Or Val(SortRow.TEXT) > 16384 Then
  606.         Beep
  607.         MsgBox "Must be between 1 and 16,384", 48
  608.         SortRow.TEXT = Str$(Set_SortRows%)
  609.         SortRow.SetFocus
  610.     Else
  611.         Set_SortRows% = Val(SortRow.TEXT)
  612.     End If
  613. End Sub
  614.